package com.redfox.newapp;

import android.app.Application;

/**
 * Created by redfox on 2017/3/15.
 */

public class MyApplication extends Application {
    private static MyApplication myApp;
    @Override
    public void onCreate() {
        super.onCreate();
        myApp = this;
    }

    public static MyApplication getInstance() {
        if (myApp == null)
            myApp = new MyApplication();
        return myApp;
    }
}
